package main

import (
	"fmt"
	"gitee.com/xiakai001/goutl/cmd_gen"
	"github.com/urfave/cli/v2"
	"os"
)

const Version = "1.0.0"

func main() {

	args := os.Args

	app := &cli.App{
		Name:    "小工具",
		Usage:   "go写的小工具，用来处理一下任务",
		Version: Version,
		Writer:  os.Stdout,
		Commands: []*cli.Command{
			cmd_gen.DDLCli,
			cmd_gen.MVCli,
		},
	}

	err := app.Run(args)
	if err != nil {
		fmt.Printf("ERROR: %v\n", err)
	}
}
